Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dApp staking v3 precompile docs #1121

Merged
merged 2 commits into from
Jan 3, 2024
Merged

Conversation

Dinonard
Copy link
Member

@Dinonard Dinonard commented Jan 2, 2024

Pull Request Summary

Extended documentation about dApp staking precompile v2 & v3 interface differences.

@Dinonard Dinonard added documentation Add documentation runtime This PR/Issue is related to the topic “runtime”. labels Jan 2, 2024
ashutoshvarma
ashutoshvarma previously approved these changes Jan 3, 2024

Some examples of this:
* Since all stakes are reset at the end of each period, developers will need to adapt their smart contract logic for this.
* Bonus rewards concept was only introduced from the precompile v2 interface, so there's no equivalent call in v1 interface.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know, but it's kind of confusing with the v1,v2 versioning for precompile and v2,v3 for pallet 😅

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about I rename the .sol interfaces to v2 and v3?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That would make more sense and less confusing.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be done.

Copy link

github-actions bot commented Jan 3, 2024

Code Coverage

Package Line Rate Branch Rate Health
precompiles/xvm/src 74% 0%
precompiles/xcm/src 72% 0%
pallets/xc-asset-config/src 53% 0%
pallets/dapp-staking-v3/src/benchmarking 0% 0%
precompiles/dapp-staking-v3/src/test 0% 0%
chain-extensions/types/unified-accounts/src 0% 0%
pallets/collator-selection/src 69% 0%
pallets/dapp-staking-migration/src 39% 0%
pallets/dapp-staking-v3/src 78% 0%
precompiles/sr25519/src 64% 0%
chain-extensions/xvm/src 0% 0%
precompiles/unified-accounts/src 100% 0%
chain-extensions/types/xvm/src 0% 0%
pallets/dapp-staking-v3/rpc/runtime-api/src 0% 0%
pallets/dapps-staking/src/pallet 85% 0%
pallets/dynamic-evm-base-fee/src 81% 0%
pallets/ethereum-checked/src 48% 0%
precompiles/assets-erc20/src 81% 0%
primitives/src 66% 0%
pallets/dapps-staking/src 81% 0%
pallets/unified-accounts/src 84% 0%
precompiles/dapp-staking-v3/src 90% 0%
chain-extensions/unified-accounts/src 0% 0%
primitives/src/xcm 66% 0%
pallets/block-rewards-hybrid/src 87% 0%
pallets/inflation/src 70% 0%
pallets/xvm/src 40% 0%
chain-extensions/pallet-assets/src 0% 0%
precompiles/dapps-staking/src 94% 0%
precompiles/substrate-ecdsa/src 74% 0%
pallets/dapp-staking-v3/src/test 0% 0%
chain-extensions/types/assets/src 0% 0%
Summary 68% (3181 / 4706) 0% (0 / 0)

Minimum allowed line rate is 50%

@Dinonard Dinonard merged commit be5bec1 into master Jan 3, 2024
9 checks passed
@Dinonard Dinonard deleted the feat/dsv3-precompile-migration-doc branch January 3, 2024 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Add documentation runtime This PR/Issue is related to the topic “runtime”.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants